/**
* Created by ren on 2017/1/6.
*/
<template>
  <div class='pwdManage'>
    <div class="item" @click="cut('updatePayPwd')">
      <span>修改支付密码</span><img src="../../assets/toright.png" alt="">
    </div>
    <div class="item" @click="cut('resetPayPwd')">
      <span>设置支付密码</span><img src="../../assets/toright.png" alt="">
    </div>
  </div>
</template>

<script>
  export default {
    name: 'pwdManage',
    components: {},
    props: ['_parentThis'],
    methods: {
      cut: function (name) {
        this._parentThis.safeChild = name
        switch (name) {
          case 'updatePayPwd':
            this._parentThis.titHtml = '<span>信息安全 > <span>支付管理</span> > <span style="color: #f48315;">修改支付密码</span></span>'
            break
          case 'resetPayPwd':
            this._parentThis.titHtml = '<span>信息安全 > <span>支付管理</span> > <span style="color: #f48315;">设置支付密码</span></span>'
            break
        }
      }
    },
    mounted: function () {
      this.existPay = this.$cookie.get('existPay')
    }
  }
</script>
